package com.example.socket;

import android.util.Log;

import okhttp3.OkHttpClient;
import okhttp3.Request;

public class GlobalOkhttpClient {
    public static final String tag = "httpLog";
    public static final String baseUrl = "http://175.178.35.189:5765/";
    public static final OkHttpClient okHttpClient;

    static {
        okHttpClient = new OkHttpClient.Builder()
                .addInterceptor(chain -> {
                    Request request = chain.request();
                    Log.i(tag, request.url().toString());
                    return chain.proceed(request);
                })
                .build();
    }
}
